

import request from '@/router/axios'

const prefix = '/rca/swckdiffafterclear'

export function fetchList(query) {
  return request({
    url: prefix+'/page',
    method: 'get',
    params: query
  })
}

export function getObj(id) {
  return request({
    url: prefix+'/' + id,
    method: 'get'
  })
}

export function confirm(query) {
  return request({
    url: prefix+'/confirm',
    method: 'get',
    params: query
  })
}

export function dataExport(query) {
  return request({
    url: prefix+'/export',
    responseType: 'blob',
    method: 'get',
    params: query
  })
}

export function updateBatch(obj) {
  return request({
    url: prefix+'/updateBatch',
    method: 'put',
    data: obj
  })
}

export function updateById(obj) {
  return request({
    url: prefix+'/updateById',
    method: 'put',
    data: obj
  })
}
